import { withPropsAPI } from 'gg-editor';
import React, { createContext } from 'react';

const FlowEditorContext = createContext();

export default FlowEditorContext;

export const FlowEditorProvider = withPropsAPI(({ children, propsAPI }) => {
  return <FlowEditorContext.Provider value={{ propsAPI }}>{children}</FlowEditorContext.Provider>;
});
